﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;


namespace DataTier.Entities
{
    /// <summary>
    /// Объект, возвращающий полную информацию о Центре затрат (вместе с информацией из объекта User)
    /// </summary>
    [Serializable]
    public class CostsCenterFullInfoEntity
    {
        #region Свойства, относящиеся к сущности Центр затрат

        
        public int CostsCenterId
        {
            get { return costsCenterId; }
            set { costsCenterId = value; }
        }
        private int costsCenterId;


        
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string name;


        
        public string BS
        {
            get { return bs; }
            set { bs = value; }
        }
        private string bs;

        
        public string MVZ
        {
            get { return mvz; }
            set { mvz = value; }
        }
        private string mvz;


        
        public int? DepartmentId
        {
            get { return departmentId; }
            set { departmentId = value; }
        }
        private int? departmentId;


        
        public string DepartmentName
        {
            get { return departmentName; }
            set { departmentName = value; }
        }
        private string departmentName;


        
        public string CostsCenterNameWithDepartmentName
        {
            get { return departmentName + " / " + name + " - " + bs + " / " + mvz; }
            set { costsCenterNameWithDepartmentName = value; }
        }
        private string costsCenterNameWithDepartmentName;


        
        public bool? Deleted
        {
            get { return deleted; }
            set { deleted = value; }
        }
        private bool? deleted;

        #endregion Свойства, относящиеся к сущности Центр затрат


        #region Свойства, относящиеся к сущности Пользователь

        
        public int? UserId
        {
            get { return userId; }
            set { userId = value; }
        }
        private int? userId;


        
        public string UserFIO
        {
            get { return userFIO; }
            set { userFIO = value; }
        }
        private string userFIO;

        
        public string UserLogin
        {
            get { return userLogin; }
            set { userLogin = value; }
        }
        private string userLogin;

        
        public string UserPassHash
        {
            get { return userPassHash; }
            set { userPassHash = value; }
        }
        private string userPassHash;

        
        public string UserEmail
        {
            get { return userEmail; }
            set { userEmail = value; }
        }
        private string userEmail;

        
        public string UserPhone
        {
            get { return userPhone; }
            set { userPhone = value; }
        }
        private string userPhone;

        
        public bool UserIsEnable
        {
            get { return userIsEnable; }
            set { userIsEnable = value; }
        }
        private bool userIsEnable;


        
        public RoleEntity UserRole
        {
            get { return userRole; }
            set { userRole = value; }
        }
        private RoleEntity userRole;

        #endregion Свойства, относящиеся к сущности Пользователь

    }

}
